//
//  CategoryCell.swift
//  Keep1
//
//  Created by 王志涛 on 2021/1/19.
//

import SwiftUI

struct CategoryCell: View {
    var body: some View {
        HStack {
            Image("placeHolder")
                .resizable()
                .frame(width:87, height: 58)
                .clipped()
                .shadow(color: .gray, radius: 3, x: -1.0, y: 1)
            VStack(alignment: .leading, spacing: 3) {
                Text("为3-6岁（幼儿园）")
                    .font(.headline)
                    .bold()
                    .padding(.top,5)
                Text("定制课程")
                    .font(.subheadline)
                    .bold()
                    .padding(.bottom,20)
            }
            Spacer()
            Image(systemName: "chevron.right")
        }
        .frame(width: UIScreen.main.bounds.width - 50, height: 70, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
    }
}

struct CategoryCell_Previews: PreviewProvider {
    static var previews: some View {
        Group {
            CategoryCell()
                .previewDevice("iPhone 12")
            CategoryCell()
                .previewDevice("iPhone 8")
        }
        .previewLayout(.fixed(width: UIScreen.main.bounds.width, height: 100))
    }
}
